package com.htgd.gardenexpo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.entity.GeConCalendar;
import com.htgd.gardenexpo.entity.PageQuery;
import com.htgd.gardenexpo.page.RecommendQuery;
import com.htgd.gardenexpo.vo.RecommendVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 新闻表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-02-06
 */
@Mapper
public interface GeConCalendarDao extends BaseMapper<GeConCalendar> {

    List<GeConCalendar> getAllNewsByValue(PageQuery pageQuery);

    List<GeConCalendar> getAllNewsByValueNoContent(PageQuery pageQuery);

    GeConCalendar queryById(Integer newId);

    List<RecommendVO> getRecommendList(@Param("query") RecommendQuery recommendQuery);

    List<RecommendVO> getSceneList(@Param("query") RecommendQuery recommendQuery);

    List<RecommendVO> getSceneListById(@Param("list") List<Integer> ids);

    List<RecommendVO> getCalendarList(@Param("query") RecommendQuery recommendQuery);

    List<RecommendVO>getVenueList(@Param("query") RecommendQuery recommendQuery);

    int getRecommendCount(@Param("query") RecommendQuery recommendQuery);

    int getSceneCount(@Param("query") RecommendQuery recommendQuery);

    int getCalendarCount(@Param("query") RecommendQuery recommendQuery);

    int getVenueCount(@Param("query") RecommendQuery recommendQuery);
}
